package com.mybatis.dao;

import java.util.Map;

import com.lanhai.model.Park;

public class ParkSqlProvider {
	
    public String updateTempData(Park park){
		String updateSql = "update temp_park set agvId=" + park.getAgvId()
		+ " where id=" + park.getId();
    	return updateSql;
    }
    
    public String saveParkingLog(Map<String, String> map){
    	String parkId = map.get("parkId");
    	String parkName = map.get("parkName");
    	String agvId = map.get("agvId");
    	String inTime = map.get("inTime");
		String sql = "insert into park_log (parkId,parkName,agvId,inTime)"
				+ " values (" + parkId + ",'" + parkName + "'," + agvId + ",'" + inTime + "')";
		return sql;
    }
    
}
